Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Draft of generic fractional ownership DAO #57

Merged
merged 18 commits into from
Mar 22, 2021
Merged

Draft of generic fractional ownership DAO #57

merged 18 commits into from
Mar 22, 2021

Conversation

emishur
Copy link
Contributor

@emishur emishur commented Mar 5, 2021

No description provided.

@emishur emishur requested review from jacobarluck and EGuenz March 5, 2021 20:33
fractional/generic_fractional/README.md Outdated Show resolved Hide resolved
```ocaml
%vote {
lambda: unit -> operation;
nonce: nat;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the purpose of the nonce here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent a replay attack. See how vote_nonce is used in existing fractional DAO

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it strictly increasing? In that case, maybe counter would be clearer? Otherwise, why isn't it strictly increasing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is strictly increasing

@jacobarluck
Copy link
Contributor

please also make the relevant PR to the minter-sdk repo: tqtezos/minter-sdk#11

@emishur emishur marked this pull request as ready for review March 22, 2021 16:08
Copy link

@EGuenz EGuenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

: dao_lambda * permit * nat) : address =
let signed_data = Bytes.pack (
(Tezos.chain_id, Tezos.self_address),
(vote_count, lambda)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't follow exactly the signing procedure in Tzip-17(https://gitlab.com/tzip/tzip/-/blob/master/proposals/tzip-17/tzip-17.md#submission) where the parameter is packed and then hashed with BLAKE2B but I suppose that is unnecessary in this context since the un-obfuscated parameter is passed to the entrypoint at the same time anyway

@emishur emishur merged commit 356232e into master Mar 22, 2021
@emishur emishur deleted the simple-dao branch October 13, 2023 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants